import { createBrowserRouter } from 'react-router-dom'
import Home from '../page/Home/index'
import Chfw from '../page/Chfw/index'
import City from '../page/City/index'
import Vip from '../page/Vip/index'
import Order from '../page/Order/index'
import My from '../page/My/index'
import Layout from '../page/Layout/index'
import Error from '../page/Error/index'
const router = createBrowserRouter([
    {
        path: '/', element: <Layout />, children: [
            { path: '/', element: <Home /> },
            { path: '/chfw', element: <Chfw /> },
            { path: '/vip', element: <Vip /> },
            { path: '/order', element: <Order /> },
            { path: '/my', element: <My /> },
        ]
    },
    { path: '/city', element: <City /> },
    { path: '*', element: <Error /> }
])
export default router